package com.blog.service;

import com.blog.dto.AddCategoryByArticleDTO;
import com.blog.dto.ArticleDTO;
import com.blog.dto.PageDTO;
import com.blog.vo.ArticleVO;
import com.blog.vo.CategoryVO;

import java.util.List;

public interface ArticleService {
    List<ArticleVO> articleList();

    List<ArticleVO> articleListByValue(String value);

    ArticleVO articleListById(Long id);

    void addArticle(ArticleDTO articleDTO);

    void EditArticle(ArticleDTO articleDTO);

    void deleteArticle(Long id);

    List<ArticleVO> pageArticle(PageDTO pageDTO);

    Long totalArticle();

    List<ArticleVO> articleByNoCategory();

    List<ArticleVO> articleByCategory(Long categoryId);

    List<CategoryVO> getOneArticleByCategory(Long articleId);

    void AddCategoryByArticle(AddCategoryByArticleDTO addCategoryByArticleDTO);

    List<ArticleVO> recommendArticleList(Long uid);

    List<ArticleVO> timeNewArticleList(Long uid);

    List<ArticleVO> userPageArticleList(PageDTO pageDTO);

    Long userTotalArticle(Long uid);

    ArticleVO oneArticleById(Long aid);

    List<CategoryVO> getCategoryByArticleID(Long aid);

    List<ArticleVO> IsRecommendArticle(Long IsRecommend);

    void EditArticleRecommend(Long articleId, Long isRecommend);
}
